home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1703 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: bright.ecs.soton.ac.uk!mat92
  2. From: mat92@ecs.soton.ac.uk (Mark Tranchant)
  3. Newsgroups: comp.lang.c,comp.os.msdos.programmer,comp.sys.ibm.pc.hardware.video,comp.sys.ibm.pc.hardware.misc,comp.sys.ibm.pc.misc
  4. Subject: Re: malloc'ing 1.5MB of memory
  5. Date: 16 Jan 1996 13:02:28 GMT
  6. Organization: Electronics and Computer Science, University of Southampton
  7. Message-ID: <4dg7l4$n1h@bright.ecs.soton.ac.uk>
  8. References: <4culvu$612@stc06.ctd.ornl.gov> <DL0HqJ.7H4@rug.nl>
  9. NNTP-Posting-Host: life.ecs.soton.ac.uk
  10. X-Newsreader: NN version 6.5.0
  11.  
  12. In <DL0HqJ.7H4@rug.nl> Herman Dullink <csg669@wing.rug.nl> writes:
  13.  
  14. >forrest@esdhof.esd.ornl.gov (Forrest M. Hoffman) wrote:
  15. >>Can anyone tell me how to grab a 1.5 MB chunk of PC memory?  I've got a
  16. >>VideoBlaster card and some C code they gave me.  But I want to use the
  17. >>full screen (800x600) at 24 bit color.  This means I have to have this
  18. >>much space to have the routine dump the data into.  The machine I'm
  19. >>using is a 486 with 16MB of memory.  This must be a DOS limitation?
  20. >>I'm using MS C 6.0 and calling halloc();
  21. >It's probably the limitation of MS C's halloc().
  22.  
  23. >>Any suggestions?
  24.  
  25.  
  26. Use linux instead. Free compiler (gcc), free OS, fully 32-bit.
  27. ptr = malloc(1572864).
  28.  
  29. It is heaven after DOS programming - the only disadvantage is the lack of a
  30. nice, user-friendly IDE.
  31.  
  32. Learning the SVGAlib routines would be a bit of a sod, however: unless you
  33. are directly driving the hardware. 
  34.  
  35. Mark.
  36.  
  37.